package vip.meeet.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Api(value = "/line", description = "Operations about user")
@Controller
@RequestMapping("/line")
public class LineController {

    @RequestMapping("/one1")
    @ApiOperation(
            value = "Find purchase order by ID",
            notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions",
            response = String.class,
            tags = {"Pet Store"})
    public String one1(Model model){//天猫销售额,https://m.sm.cn/s?q=%E5%8F%8C%E5%8D%81%E4%B8%80%E6%88%90%E4%BA%A4%E9%A2%9D
        Integer[] amounts = {5200,93600,520000,1910000,3500000,5710000,9120000,12070000,16820000,21350000,26840000,37230000};//万
        Integer[] year = {2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020};
        model.addAttribute("categories",year);
        model.addAttribute("datas",amounts);
        return "line/one1";
    }


}
